local shangshi = fk.CreateSkill{
    name = "jin_heg__shangshi",
}

Fk:loadTranslationTable{
    ["jin_heg__shangshi"] = "伤逝",
    [":jin_heg__shangshi"] = "每回合结束时，你可将手牌摸至你已损失体力值。",

    ["$jin_heg__shangshi1"] = "伤我最深的，竟是你司马懿。",
    ["$jin_heg__shangshi2"] = "世间刀剑数万，何以情字伤人？",
}

shangshi:addEffect(fk.TurnEnd,{
    anim_type = "offensive",
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(shangshi.name) and ((player.maxHp - player.hp) - player:getHandcardNum()) > 0
      end,
    on_use = function (self, event, target, player, data)
        local diff = (player.maxHp - player.hp) - player:getHandcardNum()
        if diff > 0 then
          player:drawCards(diff, shangshi.name)
        end
      end,
})

return shangshi